{include file="comm/left"}
<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>修改商品信息</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="commentForm" action="" method="post"  enctype="multipart/form-data">
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择品牌：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="brandid">
                            {volist name="brandid" id="data"}
                            <option value="{$data.id}" {if condition="$dataa.brandid==$data.id"}selected="selected"{/if}>{$data.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择该商品的分类：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="classifyid">
                            {volist name="classifyid" id="data"}
                            <option value="{$data.id}" {if condition="$dataa.classifyid==$data.id"}selected="selected"{/if}>{$data.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品名：</label>
                    <div class="col-sm-9">
                        <input id="cname" name="name" minlength="2" type="text" class="form-control" required="" aria-required="true" value="{$dataa.iname}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品原图片：</label>
                    <div class="col-sm-9">
                        <img src="__STATIC__/img_issue/{$dataa.photo}"   width="70px">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品图片：</label>
                    <div class="col-sm-9">
                        <input type="file" name="image" class="form-control" >
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品属性：</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="attr">
                            <option value="1" {if condition="$dataa.attr==1"}selected="selected"{/if}>推荐</option>
                            <option value="2"{if condition="$dataa.attr==2"}selected="selected"{/if}>精品</option>
                            <option value="3"{if condition="$dataa.attr==3"}selected="selected"{/if}>热销</option>
                            <option value="4"{if condition="$dataa.attr==4"}selected="selected"{/if}>新品</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品库存：</label>
                    <div class="col-sm-9">
                        <input type="text"  required="" name="inventory" class="form-control" placeholder="请输入文商品库存" value="{$dataa.inventory}"> <span class="help-block m-b-none">必须输入商品库存</span>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否上架：</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" checked="" value="1" id="optionsRadios1" name="putaway" {if condition="$dataa.putaway==1"}checked="checked"{/if}>上架</label>
                        <label class="radio-inline">
                            <input type="radio" value="0" id="optionsRadios2" name="putaway"{if condition="$dataa.putaway==0"}checked="checked"{/if}>下架</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">市场价：</label>
                    <div class="col-sm-9">
                        <input type="text" required="" name="bazaar" class="form-control" placeholder="请输入市场价" value="{$dataa.bazaar}￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">本站价：</label>
                    <div class="col-sm-9">
                        <input type="text" required="" name="stand" class="form-control" placeholder="请输入本站价" value="{$dataa.stand}￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">活动价：</label>
                    <div class="col-sm-9">
                        <input type="text" required="" name="active" class="form-control" placeholder="请输入活动价" value="{$dataa.active}￥">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">成本价：</label>
                    <div class="col-sm-9">
                        <input type="text" required="" name="cost" class="form-control" placeholder="请输入成本价" value="{$dataa.cost}￥">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" for="-NaN">审核情况：</label>
                    <div class="col-sm-9">
                        <label class="radio-inline" for="-NaN">
                            <input type="radio" checked="" value="1" id="-NaN" name="audit"{if condition="$dataa.audit==1"}checked="checked"{/if}>通过</label>
                        <label class="radio-inline" for="-NaN">
                            <input type="radio" value="0" id="-NaN" name="audit"{if condition="$dataa.audit==0"}checked="checked"{/if}>未通过</label>
                    </div>
                </div>
                {if $dataa.ispre==1}
                <div class="form-group">
                    <label class="col-sm-3 control-label">预售价：</label>
                    <div class="col-sm-9">
                        <input type="text" required="" value="{$dataa.pre}" name="pre" id="pre"  class="form-control" placeholder="请输入预售价">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">预售开始时间：</label>
                    <div class="col-sm-9">
                        <input type="datetime-local" required="" value="{$dataa.startpre}" name="startpre" id="startpre"  class="form-control" >
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">预售结束时间：</label>
                    <div class="col-sm-9">
                        <input type="datetime-local" required="" value="{$dataa.stoppre}" name="stoppre" id="stoppre"  class="form-control" >
                    </div>
                </div>
                {/if}
                <input type="hidden" name="id" value="{$dataa.aid}">
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit" name="submit">发布</button>
                    </div>
                </div>
            </form>
        </div>
    </div >
</div>
</body>
